package cn.tedu.task;

import javax.swing.*;

/**
 * 设计鱼雷潜艇类
 */
public class TorpedoSubmarine extends SeaObject implements EnemyScore{

    /**
     * Instantiates a new Torpedo submarine.
     */
    public TorpedoSubmarine(){
        super(64,20);
    }

    @Override
    public void move(){
        x+=speed;
    }

    @Override
    public ImageIcon getImage(){
        return Images.torpesubm; //返回鱼雷潜艇图片
    }

    @Override
    public int getScore() {
        return 40;
    }
}















